package org.dream.domain;

/**
 * 股票日成交信息
 */
public class Daydeal implements java.io.Serializable, Comparable<Daydeal> {

	private String id;
	private String code;
	private String name;
	private String DAY;
	private Double OPEN;
	private Double HIGH;
	private Double LOW;
	private Double CLOSE;
	private Double VOL;
	private Double riseWidth;
	private Double VOLRiseWidth;
	private Integer dayNum;

	private Integer jlScore;
	private Integer jlScoreTotal;

	@Override
	public String toString() {
		
		return id+"-"+code+"-"+DAY;
	}

	public Integer getJlScoreTotal() {
		return jlScoreTotal;
	}

	public void setJlScoreTotal(Integer jlScoreTotal) {
		this.jlScoreTotal = jlScoreTotal;
	}

	public Integer getJlScore() {
		return jlScore;
	}

	public void setJlScore(Integer jlScore) {
		this.jlScore = jlScore;
	}

	public Daydeal() {
	}

	public Daydeal(String id) {
		this.id = id;
	}
	public Daydeal(String id,String day) {
		this.id = id;
		this.DAY=day;
	}
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDAY() {
		return this.DAY;
	}

	public void setDAY(String day) {
		this.DAY = day;
	}

	public Double getOPEN() {
		return this.OPEN;
	}

	public void setOPEN(Double kaiPan) {
		this.OPEN = kaiPan;
	}

	public Double getHIGH() {
		return this.HIGH;
	}

	public void setHIGH(Double zuiGao) {
		this.HIGH = zuiGao;
	}

	public Double getLOW() {
		return this.LOW;
	}

	public void setLOW(Double zuiDi) {
		this.LOW = zuiDi;
	}

	public Double getCLOSE() {
		return this.CLOSE;
	}

	public void setCLOSE(Double shouPan) {
		this.CLOSE = shouPan;
	}

	public Double getVOL() {
		return this.VOL;
	}

	public void setVOL(Double chengJiaoLiang) {
		this.VOL = chengJiaoLiang;
	}

	public Double getRiseWidth() {
		return this.riseWidth;
	}

	public void setRiseWidth(Double zhangFu) {
		this.riseWidth = zhangFu;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public double getZhangFuDay(int dayNum) {
		// return new DayDealService().getZhangFu(code, this.day, dayNum);
		return 0.0;
	}

	public double getZhangFu5() {
		return this.getZhangFuDay(5);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int compareTo(Daydeal o) {
		
		return this.getDAY().compareTo(o.getDAY());
	}

	public Integer getDayNum() {
		return dayNum;
	}

	public void setDayNum(Integer dayNum) {
		this.dayNum = dayNum;
	}

	public Double getVOLRiseWidth() {
		return VOLRiseWidth;
	}

	public void setVOLRiseWidth(Double VOLZhangfu) {
		this.VOLRiseWidth = VOLZhangfu;
	}

	public boolean isDaliang() {
		if (this.getVOLRiseWidth() > 30.0 || this.getVOLRiseWidth() < -30.0) {
			return true;
		} else {
			return false;
		}
	}

	public boolean isDaliang(double liang) {
		if (this.getVOLRiseWidth() > liang || this.getVOLRiseWidth() < -liang) {
			return true;
		} else {
			return false;
		}
	}

	public boolean isDaZhangFu(double fu) {
		if (this.getRiseWidth() > fu || this.getRiseWidth() < -fu) {
			return true;
		} else {
			return false;
		}
	}
}
